<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateScoreOptionsTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('score_options', function(Blueprint $table)
		{
			$table->increments('id');
			$table->timestamps();
			//varchar 255 名称
			$table->string('name');
			//int 11 权重，如30%，则为30
			$table->integer('weight');
			//tinyint 3 类型 0为设备 1为技术
			$table->tinyInteger('type');

			$table->softDeletes();

		});
	}

	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('score_options');
	}

}
